﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;

namespace TfsUtils.Ui.Mvvm
{
    public class ViewBase : Window
    {

        public void HeaderMouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                DragMove();
            }
        }

        public void ReduceToIcon()
        {
            WindowState = System.Windows.WindowState.Minimized;
        }

        public void CloseClick(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
